//
//  HomePageTableViewCell.m
//  网易新闻
//
//  Created by 王宇先 on 16/4/9.
//  Copyright © 2016年 王宇先. All rights reserved.
//

#import "HomePageTableViewCell.h"
#import "HomePageModel.h"

@interface HomePageTableViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *imageOfHomePage;
@property (weak, nonatomic) IBOutlet UILabel *labelOfTitle;
@property (weak, nonatomic) IBOutlet UILabel *LabelOfNews;


@end

@implementation HomePageTableViewCell
#pragma mark - 赋值
- (void)setCellvalue: (HomePageModel *)model{
    
    self.labelOfTitle.text = model.title;
    self.LabelOfNews.text = model.digest;
    NSURL *url1 = [NSURL URLWithString:model.img];
    NSData *data = [NSData dataWithContentsOfURL:url1];
    self.imageOfHomePage.image = [UIImage imageWithData:data];
    
    
}

#pragma mark - other
- (void)awakeFromNib {
    // Initialization code
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
